﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace TaskHubServiceDummy2
{
    /// <summary>
    /// Summary description for Task
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class Task : System.Web.Services.WebService
    {

        [WebMethod]
        public TaskList AddTask(uint OwnerAccountID, uint TargetAccountID, string Name, DateTime DueDate, string Description)
        { return null; }

        [WebMethod]
        public bool DeleteTask(uint MyAccountID, uint TaskID)
        { return true; }

        [WebMethod]
        public bool AcceptTask(uint MyAccountID, uint TaskID) 
        { return true; }

        [WebMethod]
        public bool RejectTask(uint MyAccountID, uint TaskID)
        { return true; }

        [WebMethod]
        public int CompleteTask(uint MyAccountID, uint TaskID)
        { return 0; }

        [WebMethod]
        public bool ModifyTask(uint TaskID, uint TargetAccountID, string Name, DateTime DueDate, string Description)
        { return true; }

        [WebMethod]
        public TaskList[] GetMyTasks(uint MyAccountID)
        { return null; }

        [WebMethod]
        public TaskList[] GetOthersTasks(uint MyAccountID)
        { return null; }

    }


    public class TaskList
    {
        public uint TaskID { get; set; }
        public uint OwnerAccountID { get; set; }
        public uint TargetAccountID { get; set; }
        public string Name { get; set; }
        public DateTime DueDate { get; set; }
        public string Description { get; set; }
        public char Status { get; set; }
    }
}
